<?php

namespace App\BO\OrderStatus\State\Refund;

use App\BO\OrderStatus\State\AOrderState;

/**
 * 用户主动取消退款申请
 * Class RefundCancelledByUserState
 * @package App\BO\OrderStatus\State\Refund
 */
class RefundCancelledByUserState extends AOrderState
{
    /**
     * 实际状态
     * @var string
     */
    protected $state = '用户主动取消退款申请';

    /**
     * 前端显示用
     * @var string
     */
    protected $desc = '待分配';

    /**
     * @return bool
     */
    public function couldDistribute()
    {
        return true;
    }

    /**
     * @return bool
     */
    public function hasRefundInfo()
    {
        return true;
    }

    /**
     * 分配操作
     * @return mixed|void
     * @throws \Exception
     */
    public function distribute()
    {
        $this->toWaitingService();
    }
}
